package ${package.basePackage}.${package.moduleName}.entity;

<#list tableInfo.importPackages as pkg>
import ${pkg};
</#list>
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.seal.commons.core.entity.BaseEntity;

/**
* 功能描述: <br/>
* @date:     ${createDateTime}<br/>
* @author   ${auther}
* @since    JDK 1.8
*/

@Entity
@Table(name="${tableInfo.name}")
<#if strategyConfig.superEntityClass??>
public class ${tableInfo.entityName} extends BaseEntity {
<#else>
public class ${tableInfo.entityName} implements Serializable {
</#if>

<#list tableInfo.fields as column>
    /**
    * <#if column.comment??>${column.comment}<#else>${column.fieldName}</#if>
    */
    <#if column.nullable == false || column.size??>
    @Column(<#if column.nullable == false>nullable=false<#if column.size??>,</#if></#if><#if column.size??>length=${column.size}</#if>)
    <#else>
    @Column
    </#if>
    private ${column.javaType} ${column.fieldName};

</#list>


<#list tableInfo.fields as column>

    /**
    <#if column.comment??>  * ${column.comment}</#if>
    * @param ${column.fieldName} the ${column.fieldName} to set
    */
    public void ${column.setMethod}(${column.javaType} ${column.fieldName}){
        this.${column.fieldName} = ${column.fieldName};
    }

    /**
    <#if column.comment??>  * ${column.comment}</#if>
    * @return the ${column.fieldName}
    */
    public ${column.javaType} ${column.getMethod}(){
        return this.${column.fieldName};
    }
</#list>



}